package com.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.Bean.wdhtcustomerModel;
import com.Dao.wdhtcustomerModelMapper;
import com.Service.wdcustomerService;
@Service
public class wdcustomerServiceImpl implements wdcustomerService{
  @Autowired
  private wdhtcustomerModelMapper cdao;
  //查询
	public List<wdhtcustomerModel> getList(wdhtcustomerModel wbean) {
		return cdao.selectByPrimaryKey(wbean);
	}
//添加
	public int insert(wdhtcustomerModel wbean) {
		
		return cdao.insert(wbean);
	}
	//删除
	public int deleteByPrimaryKey(String customerId) {
		
		return cdao.deleteByPrimaryKey(customerId);
	}
	public int updatecustomer(wdhtcustomerModel wbean) {
		// TODO Auto-generated method stub
		return cdao.updateByPrimaryKeySelective(wbean);
	}
	public wdhtcustomerModel updateselectcustomer(String customerId) {
		// TODO Auto-generated method stub
		return cdao.updateselectByPrimaryKey(customerId);
	}
	public int updatecustomerupdate(wdhtcustomerModel wbean) {
		// TODO Auto-generated method stub
		return cdao.updateByPrimaryKeySelective(wbean);
	}
	@Override
	public int updatejilu(wdhtcustomerModel cbean) {
		// TODO Auto-generated method stub
		return cdao.updateByPrimaryKeySelective(cbean);
	}
	@Override
	public wdhtcustomerModel salectsaleyanzheng(String customerName) {
		
		return cdao.salectSaleYanZheng(customerName);
	}
	

}
